import React from "react";
import { connect } from "dva";
import LineMarkerEcharts from "./LineMarkerEcharts";
// import echarts from 'echarts/lib/echarts';
import Excel from "./Excel";
import { getComponent } from "./SliderChart";

function EchartPage({ dispatch, dataArr }) {
  const SliderChart = getComponent();

  return (
    <div>
      <Excel />
      {dataArr.length > 1 ? <LineMarkerEcharts /> : null}
      {/* <SliderChart dataArr={dataArr}/> */}
      
    </div>
  );
}

export default connect(({ echart }) => ({ ...echart }))(EchartPage);
